﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using System.Diagnostics;
using System.Reflection;
using System.Collections; 
using System.Web.UI;
using Liger.Common;

namespace Liger.Common.Extensions
{
    /// <summary>
    /// 扩展方法
    /// </summary>
    public static class DateTimeExtension
    {

        /// <summary>
        /// 返回不带时间的日期
        /// </summary>
        /// <param name="dateTime"></param>
        /// <returns></returns>
        public static DateTime ShortDateValue(this DateTime dateTime)
        {
            return new DateTime(dateTime.Year, dateTime.Month, dateTime.Day);
        }
    }
}
